package com.zhxt.fquery.service;

import com.zhxt.fquery.entity.Building;
import com.zhxt.fquery.jpa.BuildingJpa;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ml
 * @create 2017-07-21--11:38
 */
@Service
public class BuildingService  {

    @Autowired
    BuildingJpa buildingJpa;

    public Building getBuildingById(Long id){
        return buildingJpa.findOne(id);
    }
}
